﻿<%@ Page Language="C#" MasterPageFile="~/WorkspaceMasterPage.master" AutoEventWireup="true" CodeFile="Documents.aspx.cs" Inherits="Operations_Documents"  StylesheetTheme="RedTheme" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxControlToolkit" %>
<%@ Register Assembly="Pg.BioMedics.SDR.Web.Controls" Namespace="Pg.BioMedics.SDR.Web.Controls" TagPrefix="controls" %>

<asp:Content ID="workspaceContent" ContentPlaceHolderID="workspacePlaceHolder" Runat="Server">
    <table class="workspace">
        <tr>
            <td class="actionToolbarCell">  
                <controls:ActionToolbar ID="actionToolbar" GroupCssClass="actionToolbarGroup" 
                                           GroupHeaderCssClass="actionToolbarGroupHeader"
                                           ActionCssClass="actionToolbarAction" 
                                           ActionHolderCssClass="actionToolbarActionHolder"
                                           ActionSelectedCssClass="actionToolbarActionSelected" runat="server">
                    <Groups>
                        <controls:ActionGroup Title="Documents browser" runat="server">
                            <Actions>
                                <controls:Action Title="My documents" ViewName="MyDocumentsView" />
                                <controls:Action Title="Today documents" ViewName="TodayDocumentsView" />
                                <controls:Action Title="Pending documents" ViewName="PendingDocumentsView" />
                            </Actions>
                        </controls:ActionGroup>                                                   
                        <controls:ActionGroup Title="Indexing" runat="server">
                            <Actions>
                                <controls:Action Title="Register document" ViewName="RegisterDocumentView" />
                                <controls:Action Title="Pending assignments" ViewName="PendingAssignmentsView" />                                  
                            </Actions>
                        </controls:ActionGroup>
                        <controls:ActionGroup Title="Search" runat="server">
                            <Actions>
                                <controls:Action Title="Advanced search" ViewName="AdvancedSearchView" />                                
                            </Actions>
                        </controls:ActionGroup>
                    </Groups>
                </controls:ActionToolbar>                                 
            </td>
            <td class="viewCell">  
                <controls:ViewHost ID="viewHost" ActionToolbarID="actionToolbar" UpdatePanelID="viewHostUpdatePanel" runat="server">
                    <Views>                       
                        <controls:View Name="MyDocumentsView" Src="~/Operations/Views/MyDocumentsView.ascx" />
                        <controls:View Name="TodayDocumentsView" Src="~/Operations/Views/TodayDocumentsView.ascx" />
                        <controls:View Name="PendingDocumentsView" Src="~/Operations/Views/PendingDocumentsView.ascx" />
                        <controls:View Name="DocumentDetailsView" Src="~/Operations/Views/DocumentDetailsView.ascx" /> 
                        <controls:View Name="RegisterDocumentView" Src="~/Operations/Views/RegisterDocumentView.ascx" />
                        <controls:View Name="FinishRegisterDocumentView" Src="~/Operations/Views/FinishRegisterDocumentView.ascx" />
                        <controls:View Name="RecordAnnotationView" Src="~/Operations/Views/RecordAnnotationView.ascx" />
                        <controls:View Name="UploadAnnotationView" Src="~/Operations/Views/UploadAnnotationView.ascx" />
                        <controls:View Name="PendingAssignmentsView" Src="~/Operations/Views/PendingAssignmentsView.ascx" />
                        <controls:View Name="AdvancedSearchView" Src="~/Operations/Views/AdvancedSearchView.ascx" />
                        <controls:View Name="SearchResultsView" Src="~/Operations/Views/SearchResultsView.ascx" />                        
                        <controls:View Name="ErrorView" Src="~/Views/ErrorView.ascx" />
                    </Views>
                </controls:ViewHost>                      
            </td>
        </tr>        
    </table>       
     
    <asp:UpdateProgress ID="updateProgress" runat="server">
        <ProgressTemplate>
            <div class="updateProgressHolder">
                <div class="updateProgress">
                    <asp:Image SkinID="ajaxLoader" runat="server" />
                    Loading...
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>              
</asp:Content>